<div>
<?php
$this->addScript(array(
	'/js/editProfile.js'
));

$u = $this->getData('user');
?>
<h1><?=$this->T('Edit profile')?></h1>
<form class="profile-form form-horizontal" enctype="multipart/form-data" method="POST" action="/profile">
	<div class="control-group">
		<label class="control-label" for="input-name"><?=$this->T('Display name')?></label>
		<div class="controls">
			<input name="name" type="text" value="<?=$u->getName()?>" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="input-first_name"><?=$this->T('First name')?></label>
		<div class="controls">
			<input name="first_name" type="text" value="<?=$u->getFirstName()?>" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="input-last_name"><?=$this->T('Last name')?></label>
		<div class="controls">
			<input name="last_name" type="text" value="<?=$u->getLastName()?>" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="input-gender"><?=$this->T('Gender')?></label>
		<div class="controls">
			<select name="gender" id="input-gender">
				<option value=""></option>
				<option value="<?=$u::GENDER_MALE?>"<?=($u->getGender()==$u::GENDER_MALE ? ' selected="true"' : '')?>><?=$this->T('Male')?></option>
				<option value="<?=$u::GENDER_FEMALE?>"<?=($u->getGender()==$u::GENDER_FEMALE ? ' selected="true"' : '')?>><?=$this->T('Female')?></option>
			</select>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="input-email"><?=$this->T('Email')?></label>
		<div class="controls">
			<input name="email" type="text" value="<?=$u->getEmail()?>" />
		</div>
	</div>
	<div class="form-actions">
		<button type="button" class="btn btn-primary" action="apply"><?=$this->T('Apply')?></button>
		<button type="button" class="btn" action="save"><?=$this->T('Save')?></button>
		<button type="button" class="btn" action="update"><?=$this->T('Update from social')?></button>
		<button type="button" class="btn" action="cancel"><?=$this->T('Cancel')?></button>
	</div>
</form>
</div>